#include <Windows.h>
#include <iostream>
using namespace std;

void main(){
	//system("calc.exe");	
	//WinExec("mspaint.exe", SW_HIDE);
	//ShellExecute(NULL, "open", "mytext.txt", NULL, "c:\\111\\", SW_SHOW);

	STARTUPINFO si;

	ZeroMemory(&si, sizeof(si));
	si.cb = sizeof(si);

	PROCESS_INFORMATION pi;
	
	ZeroMemory(&pi, sizeof(pi));

	if(!CreateProcess( NULL,   // No module name (use command line)
        "calc.exe",        // Command line
        NULL,           // Process handle not inheritable
        NULL,           // Thread handle not inheritable
        FALSE,          // Set handle inheritance to FALSE
        0,              // No creation flags
        NULL,           // Use parent's environment block
        NULL,           // Use parent's starting directory 
        &si,            // Pointer to STARTUPINFO structure
        &pi ))         // Pointer to PROCESS_INFORMATION structure
		cout << "Error creating!!!\n";
}